
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-gou"></use>
                    </svg>
                    <div class="name">勾</div>
                    <div class="fontclass">#icon-iot-gou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-xiaolian"></use>
                    </svg>
                    <div class="name">笑脸</div>
                    <div class="fontclass">#icon-iot-xiaolian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-clock"></use>
                    </svg>
                    <div class="name">clock</div>
                    <div class="fontclass">#icon-iot-clock</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-goodb"></use>
                    </svg>
                    <div class="name">good-b</div>
                    <div class="fontclass">#icon-iot-goodb</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-add"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#icon-iot-add</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-setting"></use>
                    </svg>
                    <div class="name">设置-实</div>
                    <div class="fontclass">#icon-iot-setting</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shuaxin"></use>
                    </svg>
                    <div class="name">刷新</div>
                    <div class="fontclass">#icon-iot-shuaxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-del"></use>
                    </svg>
                    <div class="name">删除</div>
                    <div class="fontclass">#icon-iot-del</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-chongxi"></use>
                    </svg>
                    <div class="name">水滴</div>
                    <div class="fontclass">#icon-iot-chongxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shouquan"></use>
                    </svg>
                    <div class="name">授权</div>
                    <div class="fontclass">#icon-iot-shouquan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-tianjia"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#icon-iot-tianjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-yuyue"></use>
                    </svg>
                    <div class="name">预约</div>
                    <div class="fontclass">#icon-iot-yuyue</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-wallet"></use>
                    </svg>
                    <div class="name">wallet</div>
                    <div class="fontclass">#icon-iot-wallet</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-guanji"></use>
                    </svg>
                    <div class="name">关机</div>
                    <div class="fontclass">#icon-iot-guanji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-jingshuitongji"></use>
                    </svg>
                    <div class="name">字体图标2_趋势曲线图</div>
                    <div class="fontclass">#icon-iot-jingshuitongji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-edit"></use>
                    </svg>
                    <div class="name">编辑</div>
                    <div class="fontclass">#icon-iot-edit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-list"></use>
                    </svg>
                    <div class="name">list</div>
                    <div class="fontclass">#icon-iot-list</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-wifi"></use>
                    </svg>
                    <div class="name">wifi</div>
                    <div class="fontclass">#icon-iot-wifi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-empty"></use>
                    </svg>
                    <div class="name">无</div>
                    <div class="fontclass">#icon-iot-empty</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-huifu"></use>
                    </svg>
                    <div class="name">恢复</div>
                    <div class="fontclass">#icon-iot-huifu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-time"></use>
                    </svg>
                    <div class="name">时间</div>
                    <div class="fontclass">#icon-iot-time</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shouye"></use>
                    </svg>
                    <div class="name">首页-选中</div>
                    <div class="fontclass">#icon-iot-shouye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-wode"></use>
                    </svg>
                    <div class="name">我的-选中</div>
                    <div class="fontclass">#icon-iot-wode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shangcheng"></use>
                    </svg>
                    <div class="name">商城-选中</div>
                    <div class="fontclass">#icon-iot-shangcheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shebei"></use>
                    </svg>
                    <div class="name">设备-选中</div>
                    <div class="fontclass">#icon-iot-shebei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shebei-1"></use>
                    </svg>
                    <div class="name">设备-未选</div>
                    <div class="fontclass">#icon-iot-shebei-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shangcheng-1"></use>
                    </svg>
                    <div class="name">商城-未选</div>
                    <div class="fontclass">#icon-iot-shangcheng-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shouye-1"></use>
                    </svg>
                    <div class="name">首页-未选</div>
                    <div class="fontclass">#icon-iot-shouye-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-wode-1"></use>
                    </svg>
                    <div class="name">我的-未选</div>
                    <div class="fontclass">#icon-iot-wode-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-gonggao"></use>
                    </svg>
                    <div class="name">首页-公告</div>
                    <div class="fontclass">#icon-iot-gonggao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shuizhi"></use>
                    </svg>
                    <div class="name">首页-水质</div>
                    <div class="fontclass">#icon-iot-shuizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-tianqi"></use>
                    </svg>
                    <div class="name">首页-天气</div>
                    <div class="fontclass">#icon-iot-tianqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-dingwei"></use>
                    </svg>
                    <div class="name">首页-定位</div>
                    <div class="fontclass">#icon-iot-dingwei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-pingfen"></use>
                    </svg>
                    <div class="name">师傅端首页-评分</div>
                    <div class="fontclass">#icon-iot-pingfen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-shouji1"></use>
                    </svg>
                    <div class="name">我的-手机</div>
                    <div class="fontclass">#icon-iot-shouji1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-tongzhi1"></use>
                    </svg>
                    <div class="name">我的-租赁订单详情-通知</div>
                    <div class="fontclass">#icon-iot-tongzhi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-youjiantou1"></use>
                    </svg>
                    <div class="name">我的-右键头</div>
                    <div class="fontclass">#icon-iot-youjiantou1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-guanbi"></use>
                    </svg>
                    <div class="name">关闭</div>
                    <div class="fontclass">#icon-iot-guanbi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-search"></use>
                    </svg>
                    <div class="name">搜索</div>
                    <div class="fontclass">#icon-iot-search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-kefu"></use>
                    </svg>
                    <div class="name">客服中心</div>
                    <div class="fontclass">#icon-iot-kefu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-wodexiaoxi"></use>
                    </svg>
                    <div class="name">我的消息</div>
                    <div class="fontclass">#icon-iot-wodexiaoxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-bangzhuzhongxin2"></use>
                    </svg>
                    <div class="name">帮助中心</div>
                    <div class="fontclass">#icon-iot-bangzhuzhongxin2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-woman"></use>
                    </svg>
                    <div class="name">女</div>
                    <div class="fontclass">#icon-iot-woman</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-man1"></use>
                    </svg>
                    <div class="name">男</div>
                    <div class="fontclass">#icon-iot-man1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-dh"></use>
                    </svg>
                    <div class="name">IOT-dh</div>
                    <div class="fontclass">#icon-IOT-dh</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-dz"></use>
                    </svg>
                    <div class="name">IOT-dz</div>
                    <div class="fontclass">#icon-IOT-dz</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-time"></use>
                    </svg>
                    <div class="name">IOT-time</div>
                    <div class="fontclass">#icon-IOT-time</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-zl"></use>
                    </svg>
                    <div class="name">IOT-zl-2</div>
                    <div class="fontclass">#icon-IOT-zl</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-zl-1"></use>
                    </svg>
                    <div class="name">IOT-zl-1</div>
                    <div class="fontclass">#icon-IOT-zl-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-yhq"></use>
                    </svg>
                    <div class="name">IOT-yhq</div>
                    <div class="fontclass">#icon-IOT-yhq</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-jy"></use>
                    </svg>
                    <div class="name">IOT-jy</div>
                    <div class="fontclass">#icon-IOT-jy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-wc"></use>
                    </svg>
                    <div class="name">IOT-wc</div>
                    <div class="fontclass">#icon-IOT-wc</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-sx"></use>
                    </svg>
                    <div class="name">IOT-sx</div>
                    <div class="fontclass">#icon-IOT-sx</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-IOT-gj"></use>
                    </svg>
                    <div class="name">IOT-gj</div>
                    <div class="fontclass">#icon-IOT-gj</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-sc"></use>
                    </svg>
                    <div class="name">收藏</div>
                    <div class="fontclass">#icon-sc</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pl"></use>
                    </svg>
                    <div class="name">评论</div>
                    <div class="fontclass">#icon-pl</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dz-1"></use>
                    </svg>
                    <div class="name">点赞-选中</div>
                    <div class="fontclass">#icon-dz-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-sc-1"></use>
                    </svg>
                    <div class="name">收藏-选中</div>
                    <div class="fontclass">#icon-sc-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dz"></use>
                    </svg>
                    <div class="name">点赞</div>
                    <div class="fontclass">#icon-dz</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fs"></use>
                    </svg>
                    <div class="name">发送</div>
                    <div class="fontclass">#icon-fs</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tj-copy"></use>
                    </svg>
                    <div class="name">添加 加号 无边框</div>
                    <div class="fontclass">#icon-tj-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-xz"></use>
                    </svg>
                    <div class="name">选择</div>
                    <div class="fontclass">#icon-iot-xz</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-wifi1"></use>
                    </svg>
                    <div class="name">wifi</div>
                    <div class="fontclass">#icon-iot-wifi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iot-zmxy"></use>
                    </svg>
                    <div class="name">芝麻信用</div>
                    <div class="fontclass">#icon-iot-zmxy</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
